<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSysFormFieldOptionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sys_form_field_options', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('field_id')->default(0)->comment('字段id');
            $table->string('title')->default('')->comment('选项标题');
            $table->string('value')->default('')->comment('选项值');
            $table->integer('order')->default(1)->comment('排序 升序');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sys_form_field_options');
    }
}
